import server from '../utils/request'

const getAdd = async (goodsId, number, productId) => {
  const res = await server({
    url: '/api/wx/cart/add',
    method: 'POST',
    headers: {
      'x-litemall-token': localStorage.getItem('Authorization'),
      'content-type': 'application/json'
    },
    data: { goodsId, number, productId }
  })
  return {
    ...res
  }
}

export default getAdd
